<% if @user.errors.any? %>
  <div id="errorExplanation">
  <h2><%= pluralize(@user.errors.count, "error") %> prohibited this account from being created:</h2>
    <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
<% end %>

<div class="field">
  <p><label for="user_name">Nombre</label><br/>
  <%= text_field 'user', 'name' %></p>
</div>

<div class="field">
  <p><label for="user_login">Nombre de usuario</label><br/>
  <%= text_field 'user', 'login' %></p>
</div>

<div class="field">
  <p><label for="user_email">E-mail</label><br/>
  <%= text_field 'user', 'email' %></p>
</div>

<div class="field">
  <p><label for="user_password">Contrasena</label><br/>
  <%= password_field 'user', 'password' %></p>
</div>

<div class="field">
  <p><label for="user_password_confirmation">Vuelva a escribir la contrasena</label><br/>
  <%= password_field 'user', 'password_confirmation' %></p>
</div>